//
//  MoreSpecialTwoTableViewCell.m
//  GiftItems
//
//  Created by lanou3g on 15/9/20.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "MoreSpecialTwoTableViewCell.h"

@implementation MoreSpecialTwoTableViewCell

- (void)awakeFromNib {
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 30, 160, 30)];
     //   self.titleLabel.backgroundColor = [UIColor blackColor];
        
        
        self.subtitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 80, 160, 60)];
      //  self.subtitleLabel.backgroundColor = [UIColor blackColor];
        [self.contentView addSubview:self.subtitleLabel];
        
        [self.contentView addSubview:self.titleLabel];
        
        
        self.SpecialImageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.titleLabel.frame.size.width + 40, 10, kWidth / 2 - 20, 140)];
        
        self.SpecialImageView.backgroundColor = [UIColor blackColor];
        [self.contentView addSubview:self.SpecialImageView];
        self.backgroundColor = [UIColor clearColor];
        self.selectionStyle = NO;
        
        
    
    }
     return self;
}
- (void)shareModel:(MainBoutiqueModel *)model {
    
    self.titleLabel.text = model.title;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.textColor = [UIColor whiteColor];
    
    
    self.subtitleLabel.text = model.subtitle;
    self.subtitleLabel.textAlignment = NSTextAlignmentCenter;
    self.subtitleLabel.numberOfLines = 0;
    self.subtitleLabel.textColor = [UIColor whiteColor];
    self.subtitleLabel.font = [UIFont systemFontOfSize:14];
    
    [self.SpecialImageView sd_setImageWithURL:[NSURL URLWithString:model.cover_image_url] placeholderImage:[UIImage imageNamed:@"11"]];
    
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
